<template>
  <div>222</div>
</template>

<script setup>
  import { useRoute } from 'vue-router';
  import { SpuService } from '@/services';
  import { onMounted } from 'vue';
  const route = useRoute();
  console.log(route.query);
  const pageData = ref(null);
  const initData = async () => {
    if (route.query.id) {
      const { result } = await SpuService.getSpuByIdApi(route.query.id);
      pageData.value = result;
    }
  };
  onMounted(() => {
    initData();
  });
</script>

<style lang="scss" scoped></style>
